package com.itheima.colltroller;

import com.itheima.bean.Student;
import com.itheima.mapper.StudentmyBatis;
import com.itheima.mapper.impl.StudentmyBatisimpl;
import org.junit.Test;

import java.util.List;

public class StudentmyBatisa {
    public StudentmyBatis studentmyBatis=new StudentmyBatisimpl();
    @Test
    public void selectAll(){
        List<Student> students = studentmyBatis.selectAll();
        for (Student student : students) {
            System.out.println(student);
        }
    }


}
